#include "libraries.h"

#include "csprite.h"

int CSprite::init(CSpriteBase *base, SDL_Surface *screen)
{
	mSpriteBase = base;
	mScreen = screen;
	return 0;
}

void CSprite::Draw()
{
  SDL_Rect dest;
  dest.x = mX; dest.y = mY;
  SDL_BlitSurface(mSpriteBase->image, NULL, mScreen, &dest);
}